package com.company;

public class Task3 {
    public static void main(String[] args) {
        //todo 3.判断101-200之间有多少个素数，并输出所有素数。

        for (int number = 101; number <= 200; number++) {
            boolean b = true;
            for (int i = 2; i < number-1; i++) {
                if (number % i == 0) {//余数为0，能整除
                    b =false;
                }
            }
            if(b){
                System.out.println(number);
            }
        }

    }
}
